package com.songyang.Restaurant.Controller;


import com.songyang.Restaurant.Model.Food;
import com.songyang.Restaurant.Model.Result;
import org.springframework.web.bind.annotation.*;


@RestController
public class FoodController {

    @PostMapping("/search")
    public Result selectFood(@RequestBody Food food)
    {
        return Result.success(food);
    }

    @GetMapping("/add")
    public Result addFood(@RequestParam(name = "name")  String name)
    {
        return Result.success(name);
    }
}
